//
//  Untitled.swift
//  AESOLAR_IOS
//
//  Created by Bin Tang on 2024/10/11.
//  Copyright © 2024 Mr.Wang. All rights reserved.
//

import UIKit
import RxSwift
import RxCocoa


class PersonalNewViewController: BaseUIViewController {
    let nameLabel = UILabel()
    let scoreLabel = UILabel()
    let dataArray = BehaviorRelay<[(key: String, value: String)]>.init(value: [])
    
    // 头部视图
    var topView: PersonalNewTopView? = nil
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        self.navigationItem.title = "我的"
        
        // 初始化变量
        setupVar()
        
        // 初始化子视图
        setupSubView()
    }
    
    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        
        self.navigationController?.setNavigationBarHidden(true, animated: false);
    }
    
    override func viewWillDisappear(_ animated: Bool) {
        super.viewWillDisappear(animated)
    }
    
    /**
     初始化变量
     */
    func setupVar() -> Void {
        
    }
    
    /**
     初始化子视图
     */
    func setupSubView() -> Void {
        self.view.backgroundColor = UIColor(hex: "F6F8F8")
        
        // 初始化头部视图
        setupTopView()
    }
    
    /**
     初始化头部视图
     */
    func setupTopView() -> Void {
        let frame = CGRect(x: 0, y: 0, width: SCREEN_WIDTH, height: 314)
        let tmpTopView = PersonalNewTopView(frame: frame)
        self.view.addSubview(tmpTopView)
        self.topView = tmpTopView
    }
    
    
}
